package com.jbm.onehome.iface;

import com.jbm.core.iface.IAcross;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Map;

/**
 * Created by root on 16-12-1.
 */
public class IAplipay extends IAcross
{
	public IAplipay()
	{
		super();
	}

	public IAplipay(IAcross ia)
	{
		super(ia);
	}

	private static final long serialVersionUID = 70608506170030010L;


	public IAplipay(boolean back, String errorinfo)
	{
		this.back = back;
		this.errorinfo = errorinfo;
	}
	public IAplipay(String method, String orderno,BigDecimal amount,String payname,String otherparams )
	{     this.method=method;
		  this.orderno=orderno;
		this.amount=amount;
		this.otherparams=otherparams;
		this.payName=payname;
	}
	public IAplipay(String method,int acc_id,String acc_type, BigDecimal amount)
	{
		this.method=method;
		this.acc_id=acc_id;
		this.amount=amount;
		this.acc_type=acc_type;
	}
	public IAplipay(String method, String orderno,String tradeno, BigDecimal amount)
	{     this.method=method;
		this.orderno=orderno;
		this.amount=amount;
		this.tradeno=tradeno;
	}
	public IAplipay(String method, String result)
	{
		this.method=method;
		this.returnString=result;

	}
	public IAplipay(String method, Map<String, String> params)
	{
		this.method=method;
		this.params=params;

	}
	public String payName;
	public String orderno;
	public String tradeno;
	public BigDecimal amount;
	public String returnString;
    public	Map<String, String> params  ;
	public	String otherparams;
	public  int acc_id;
	public String acc_type;
    public int to_id;

	@Transient
	public boolean back;
	@Transient
	public String method;
	@Transient
	public String errorinfo;
	@Transient
	public int count;
	@Transient
	public int start=0;
	@Transient
	public int pagesize=0;
	@Transient
	public Integer tableid;
}
